import Vue from 'vue'
import App from './App'
import store from '@/store'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 引入环境变量
import ENV from '@/config/env.js'

// 全局挂载
Vue.prototype.$env = ENV
Vue.prototype.$baseUrl = ENV.BASE_URL

// 引入 Vuex Mixin
let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore)

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
  store,
  ...App
})

// 引入请求封装
require('@/common/request.js')(app)

app.$mount()
